package com.example.housingRentalSystem.mapper;

import com.example.housingRentalSystem.bean.Feedback;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 王硕
 * @version jdk21
 * @className FeedbackMapper
 * @description
 * @date 2025/3/24 10:39
 */
@Mapper
public interface FeedbackMapper {

    int insert(Feedback feedback);

    int updateFeedback(Feedback feedback);

    Feedback selectById(Integer id);

    int deleteById(Integer id);

    Page<Feedback> selectByConditions(@Param("status") Integer status, @Param("userId") Integer userId);
    int selectCountFeedback();
}